import request from '@/utils/request'

/**
* 工位表分页查询
* @param {查询条件} data
*/
export function listCksWorkStation(query) {
  return request({
    url: 'business/CksWorkStation/list',
    method: 'get',
    params: query,
  })
}

/**
* 新增工位表
* @param data
*/
export function addCksWorkStation(data) {
  return request({
    url: 'business/CksWorkStation',
    method: 'post',
    data: data,
  })
}
/**
* 修改工位表
* @param data
*/
export function updateCksWorkStation(data) {
  return request({
    url: 'business/CksWorkStation',
    method: 'PUT',
    data: data,
  })
}
/**
* 获取工位表详情
* @param {Id}
*/
export function getCksWorkStation(id) {
  return request({
    url: 'business/CksWorkStation/' + id,
    method: 'get'
  })
}

/**
* 删除工位表
* @param {主键} pid
*/
export function delCksWorkStation(pid) {
  return request({
    url: 'business/CksWorkStation/delete/' + pid,
    method: 'delete'
  })
}
